package com.yunzhi.net.disposable;

/**
 * Author by Mr.Meng
 * created 2019/5/10
 *
 * @desc 此类不再使用
 */
@Deprecated
public class SubscriptionManager {//implements SubscriptionHelper<Object>


   /* private static class SubscriptionHolder {
        private static final SubscriptionManager INSTANCE = new SubscriptionManager();
    }

    public static SubscriptionManager getInstance() {
        return SubscriptionManager.SubscriptionHolder.INSTANCE;
    }


    private CompositeDisposable mDisposables;

    private SubscriptionManager() {
        if (mDisposables == null) {
            mDisposables = new CompositeDisposable();
        }
    }


    @Override
    public void add(Disposable disposable) {
        if (disposable == null) return;
        mDisposables.add(disposable);
    }

    @Override
    public void cancel(Disposable disposable) {
        if (mDisposables != null) {
            mDisposables.delete(disposable);
        }
    }

    @Override
    public void cancelAll() {
        if (mDisposables != null) {
            mDisposables.dispose();
            mDisposables.clear();
        }
    }*/


}
